package org.s3.project.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.springframework.stereotype.Component;

import java.io.Serializable;

@Component
@Data
@ToString
@NoArgsConstructor
@AllArgsConstructor
public class Dish implements Serializable {

  private long id;
  private String name;
  private long category_id;
  private double price;
  private String image;
  private String description;
  private long status;
  private java.sql.Timestamp create_time;
  private java.sql.Timestamp update_time;
  private long create_user;
  private long update_user;
  private double score;
  private String inventory;
  private String rejection_reason;

  //商家id
  private long mid;
  //商家名称
  private String mname;
  //商家电话
  private String contact_phone;
  //商家地址
  private String address;
  private String username;
  private String create_user_name;
  private String update_user_name;
  private String merchant_name;

  private  String  longitude;  //经度
  private  String latitude;   //纬度
  private   double distance ;// 公里
}
